import $axios from './index.js'

// 登录日志
function loginLog(data) {
  const url = '/adminLoginLog/index'
  return $axios.get(url, data)
}
// 操作日志
function optLog(data) {
  const url = '/adminOptLog/index'
  return $axios.get(url, data)
}
// 备份数据库
function dataBackup(data) {
  const url = '/database/backup'
  return $axios.post(url, data)
}
// 数据恢复
function dataRestore(data) {
  const url = '/database/restore'
  return $axios.post(url, data)
}
// 数据库文件删除
function dataDelete(data) {
  const url = '/database/delete'
  return $axios.post(url, data)
}
// 数据库文件列表
function dataList(data) {
  const url = '/database/index'
  return $axios.get(url, data)
}

export default {
  loginLog,
  optLog,
  dataBackup,
  dataRestore,
  dataDelete,
  dataList
}
